import request from '@/utils/request';
// 列表
export interface List {
    assessmentId: number;
    pageNum: number;
    pageSize: number;
    [property: string]: any;
}
export function getSetupList(data:List) {
    return request({
        url: `/evaluation/management/set/list`,
        method: 'get',
        params:data
    });
}


// 添加
export interface addSet {
    /**
     * 提示内容
     */
    analysis: string;
    /**
     * 测评的id
     */
    assessmentId: number;
    /**
     * 最高分
     */
    highest: number;
    /**
     * 最低分
     */
    lowest: number;
    [property: string]: any;
}
export function addSet(data:addSet) {
    return request({
        url: `/evaluation/management/set/add`,
        method:'post',
        data:data
    });
}

// 删除

export function delSetupList(ids) {
    return request({
        url: `/evaluation/management/set/del/${ids}`,

        method: 'delete',
    });
}

//编辑
export interface editData {
    /**
     * 提示内容
     */
    analysis: any;
    /**
     * 最高分
     */
    highest: number;
    id: number;
    /**
     * 最低分
     */
    lowest: number;
    [property: string]: any;
}
export function editSet(data:editData) {
    return request({
        url: `/evaluation/management/set/edit`,
        method: 'put',
        data:data
    });
}
